<!--
 * @Descripttion: 
 * @version: 
 * @Author: EayCome
 * @Date: 2021-02-09 19:39:08
 * @LastEditors: EayCome
 * @LastEditTime: 2021-02-09 19:48:27
-->

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数组分块</title>
    <script src="chunk.js"></script>
</head>

<body>
    <script>
        console.log(chunk([1, 2, 3, 4, 5, 6, 7, 8], 3));
        // [[1,2,3],[4,5,6],[7]]
    </script>
</body>

</html>